package com.customer.crm.announcement.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_crm_announcement")
@Alias("announcementPojo")
public class AnnouncementPojo implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("order_id")
    private Integer orderId;
    @TableField("user_id")
    private String userId;
    @TableField("title")
    private String title;
    @TableField("content")
    private String content;
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField("color")
    private String color;
    @TableField("department")
    private String department;
    @TableLogic(value = "1",delval = "0")
    private Integer status;
    @TableField("isshow")
    private Integer isShow;
}
